#ifndef SCORE_H
#define SCORE_H

#include <QGraphicsTextItem>
#include <QObject>

class Score : public QGraphicsTextItem
{
    Q_OBJECT
public:
    int getScore(){
        return score;;
    }
    Score(QGraphicsItem *parent=nullptr);
    void increase();
    static Score& getInstance(){
        static Score obj;
        return obj;

    }
    void reset();
private:


    int score=0;
};

#endif // SCORE_H
